package com.example.singing.model;

import java.io.Serializable;

/**
 * 用户模型类
 */
public class User implements Serializable {
    private String username;
    private String fullName;
    private String password;
    private String role;

    public User(String username, String fullName, String password, String role) {
        this.username = username;
        this.fullName = fullName;
        this.password = password;
        this.role = role;
    }

    // Getters and Setters
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getFullName() { return fullName; }
    public void setFullName(String fullName) { this.fullName = fullName; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getRole() { return role; }
    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return fullName + " (" + role + ")";
    }
}